{% extends "templateSemSessao.html" %}

{% block conteudo %}

	{% if form.errors %}
		  <span style="color:red;"><strong>Por favor, entre com um usuario e senha corretos. Note que ambos os campos diferenciam maiusculas e minusculas.</strong></span> 
	{% endif %}

	<form method="post" action="{% url django.contrib.auth.views.login %}">
		{% csrf_token %}
		<p>Informe o usuario e senha.</p>
		<table>
			<tr>
    			<td>{{ form.username.label_tag }}</td>
    			<td>{{ form.username }}</td>
			</tr>
			<tr>
  				 <td>{{ form.password.label_tag }}</td>
  				 <td>{{ form.password }}</td>
			</tr>
		</table>
		<input type="submit" value="login" />
		<input type="hidden" name="next" value="{{ next }}" />
	</form>
		
{% endblock %}